﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication10.App_Code;

namespace WebApplication10
{
    public partial class MasterDeleteCL : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            ///int test = Convert.ToInt32(TextBox1.Text);
            CoverLetter s = CoverLetter.GetCoverLetterByID(TextBox1.Text);
            Label2.Text = s.Title;
            Label3.Text = s.Institution;
            Label4.Text = s.Course;
            Label5.Text = s.Grade;
           Label6.Text = s.Description;
         
        }

        protected void Button5_Click(object sender, EventArgs e)
        {
            CoverLetter s = new CoverLetter();
            s.CoverLetterID = Convert.ToInt32(TextBox1.Text);
            CoverLetter.DeleteCoverLetter(s); 
        }

       
        
    }
}